<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
.fui-tab-scroll .item.on:before {background:linear-gradient(to right,rgba(99,190,114,1),rgba(99,190,114,0));}
</style>
<div class="fui-page shop-index-page" style="display:block;">
    <div class="fui-content" style="padding-bottom:4rem">
		<div style="padding:0">
		<div class="fui-cell-group fui-cell-click" style="margin-top: 0;margin-bottom:0.2rem">
			<div class="fui-cellone" style="margin-top: 0;margin-bottom:0.2rem;background:#fff">
				<div class="fui-cellone-info">
					<div class="search-input" style="height:1.6rem">
						<form action="javascript:return true">
						<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="access_json('jy_wechatnews/list//keyword='+pagedata.params.keyword)" style="line-height: 1.7rem;"></i>
						<input type="search" placeholder="搜索文章" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;text-align: left; color: #999; font-size:0.6rem;background:#f2f2f2;border-radius: 1rem;border: 1px solid #f2f2f2;" />
						</form>
					</div>
				 </div>
				 <div class="fui-cell-remark noremark">
					搜索
				</div>
			</div>
		</div>
		<div class="jy-content">
		<div ng-include="sys_html('_mnewslist')"></div>
		</div>
		</div>
		<div ng-if="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		<div ng-include="sys_html('_copyright')"></div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
scope.pagedata.scancode=function () {
			console.log('scanQRCodeOK');
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
					var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					result=result.replace('EAN_13,', '');
					scope.pagedata.params.keyword = result;
					scope.$evalAsync();
				}
			});
}
</script>